package com.zjcloud.jwgl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zjcloud.common.annotation.Excel;
import com.zjcloud.common.core.domain.BaseEntity;

/**
 * 学期信息对象 sc_semester
 * 
 * @author zjcloud
 * @date 2024-12-19
 */
public class ScSemester extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学期ID */
    private Long id;

    /** 学期编码 */
    @Excel(name = "学期编码")
    private String semesterCode;

    /** 学期名称 */
    @Excel(name = "学期名称")
    private String semesterName;

    /** 学年 */
    @Excel(name = "学年")
    private String academicYear;

    /** 学期类型(SPRING春季 AUTUMN秋季 SUMMER夏季 WINTER冬季) */
    @Excel(name = "学期类型", readConverterExp = "SPRING=春季,AUTUMN=秋季,SUMMER=夏季,WINTER=冬季")
    private String semesterType;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 总周数 */
    @Excel(name = "总周数")
    private Integer totalWeeks;

    /** 是否当前学期(1是 0否) */
    @Excel(name = "是否当前学期", readConverterExp = "1=是,0=否")
    private String isCurrent;

    /** 状态(1启用 0禁用) */
    @Excel(name = "状态", readConverterExp = "1=启用,0=禁用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSemesterCode(String semesterCode) 
    {
        this.semesterCode = semesterCode;
    }

    public String getSemesterCode() 
    {
        return semesterCode;
    }
    public void setSemesterName(String semesterName) 
    {
        this.semesterName = semesterName;
    }

    public String getSemesterName() 
    {
        return semesterName;
    }
    public void setAcademicYear(String academicYear) 
    {
        this.academicYear = academicYear;
    }

    public String getAcademicYear() 
    {
        return academicYear;
    }
    public void setSemesterType(String semesterType) 
    {
        this.semesterType = semesterType;
    }

    public String getSemesterType() 
    {
        return semesterType;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setTotalWeeks(Integer totalWeeks) 
    {
        this.totalWeeks = totalWeeks;
    }

    public Integer getTotalWeeks() 
    {
        return totalWeeks;
    }
    public void setIsCurrent(String isCurrent) 
    {
        this.isCurrent = isCurrent;
    }

    public String getIsCurrent() 
    {
        return isCurrent;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("semesterCode", getSemesterCode())
            .append("semesterName", getSemesterName())
            .append("academicYear", getAcademicYear())
            .append("semesterType", getSemesterType())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("totalWeeks", getTotalWeeks())
            .append("isCurrent", getIsCurrent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}